﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MsExchangeBcsConnector.ExchangeBdcModel.Helpers;

namespace TestBase32
{
    class Program
    {
        static void Main(string[] args)
        {
            string s1 = @"QVFNa0FESXhNekJsTTJFMUxXTTRNalV0TkdNMU1TMDVaREZsTFdReU5UUTNZamM0TVdaa053QXVBQUFEVWdhVUVLcDhXa2FLZDE1eE13N2E1d0VBRXAySXlyYXRMRW01b1JHMXdReTd2Z0FBQTBzQUFBQT0=";
            Console.WriteLine("Было");
            Console.WriteLine(s1);
            string d1 = Base32Url.ToBase32String(s1).ToLowerInvariant();
            Console.WriteLine("Конвертация");
            Console.WriteLine(d1);
            Console.WriteLine("Возврат");
            string d2 = Base32Url.FromBase32String(d1.ToUpperInvariant());
            Console.WriteLine(d2);
            Console.WriteLine(String.Format("Свпадение: {0}", s1.Equals(d2)));
            Console.ReadKey();
/*"msews://root/?mailbox=makhlu@technohow.ru&MailFolder=QVFNa0FESXhNekJsTTJFMUxXTTRNalV0TkdNMU1TMDVaREZsTFdReU5UUTNZamM0TVdaa053QXVBQUFEVWdhVUVLcDhXa2FLZDE1eE13N2E1d0VBRXAySXlyYXRMRW01b1JHMXdReTd2Z0FBQWc0bkFBQUE="
"qvfna0fesxhnekjsttjfmuxxttrnalv0tkdnmu1tmdvarezstfdreu5uutnzamm0tvdaa053qxvbqufevwdhvuvlcdhxa2flzde1ee13n2e1d0vbrxaysxlyyxrmrw01b1jhmxdretd2z0fbqtbzqufbqt0="*/
        }
    }
}
